package com.java.clone;

public class TestDriver {
	public static void main(String[] args) {
		test01();
	}

	private static void test01() {
		Teacher tea0=new Teacher("王老师",25);
		Student stu0=new Student("小明",10,tea0);
		Student stu1=stu0.clone();
		System.out.println(stu0);
		System.out.println(stu1);
		System.out.println(stu0.getClass()==stu1.getClass());
		System.out.println("===================");
		System.out.println(stu0.getStuame()==(stu1.getStuame()));
		System.out.println("===================");
		System.out.println(stu0.equals(stu1));
		System.out.println(stu0==stu1);
		System.out.println(stu0.getTeacher()==stu1.getTeacher());
		System.out.println(stu0.getTeacher().equals(stu1.getTeacher()));

	}
}
